Event.observe ( window, 'load', bootstrap );

function bootstrap () {
  Event.observe ( 'type', 'change', type_changed );
}

function type_changed () {
  var type = $( 'type' ).value;
  
  fill_the_hits ( type, new Template ( '/admin/' + type + '?id=#{name}' ), true );
}
